package com.wrupple.muba.security.client.events;

import com.google.gwt.event.shared.EventHandler;

/**
 * @author japi
 * 
 */
public interface AuthenticationEventHandler extends EventHandler {

	/**
	 * Handles the event fired when the used enters authentication credentials,
	 * Authentication has not been granted at this point
	 * 
	 * @param authenticationCredentialsEnteredEvent
	 */
	void onAuthenticationCredentialsEntered(AuthenticationCredentialsEnteredEvent event);

	void onAuthenticationSuccess(AuthenticationSuccededEvent event);

	void onAuthenticationFailed(AuthenticationFailedEvent event);

	void onAuthenticationRequestFailed(AuthenticationRequestFailed event);

	void onLogout(LogoutEvent event);

}
